using net_work.Data.Enum.Hmw;

namespace net_work.Data.Entity.Hmw;

/// <summary>
/// 题目答案提交实体类
/// </summary>
public class QuestionAnswerSubmission : BaseEntity
{
    /// <summary>
    /// 提交内容
    /// </summary>
    public string? Content { get; set; }

    /// <summary>
    /// 提交得分
    /// </summary>
    public long? Score { get; set; }

    /// <summary>
    /// 提交状态
    /// </summary>
    public required SubmissionStatus Status { get; set; }

    /// <summary>
    /// 初次提交时间
    /// </summary>
    public DateTime? FirstSubmissionTime { get; set; }

    /// <summary>
    /// 最后提交时间
    /// </summary>
    public DateTime? LastSubmissionTime { get; set; }

    /// <summary>
    /// 作业题目ID（外键）
    /// </summary>
    public required long HomeworkQuestionId { get; set; }

    /// <summary>
    /// 学生ID（外键）
    /// </summary>
    public required long StudentId { get; set; }
}